package com.lvmama.pangolin.service.impl;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.lvmama.pangolin.entity.Festival_Model;
import com.lvmama.pangolin.entity.RelevanceRules;
import com.lvmama.pangolin.mybatis.mapper.FestivalMapper;
import com.lvmama.pangolin.mybatis.mapper.RelevanceRulesMapper;
import com.lvmama.pangolin.service.FestivalService;
import com.lvmama.pangolin.service.RelevanceRulesService;
@Transactional
@Service
public class RevelanceRulesServiceImpl implements RelevanceRulesService{
	/**  
	* @Title：TCTaskHistoryServiceImpl.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年2月20日下午6:13:38  
	*/
	@Autowired
	private RelevanceRulesMapper rulesMapper;
	public int insertRule(RelevanceRules rule)throws Exception{
		return rulesMapper.insertRule(rule);
	};
	public List<RelevanceRules> getAllRules()throws Exception{
		return rulesMapper.getAllRules();
	};
}
